home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NetNews Offline 1
/
NetNews Offline Volume 1.iso
/
install_english
< prev
next >
Wrap
Text File
|
1996-04-02
|
2KB
|
52 lines
(if (>= (shiftright (getversion) 16) 37)
((set assignname "NetNews_Lib")
(complete 0)
(welcome)
(set noassign (= (getassign assignname) ""))
(if noassign
((set level @user-level)
(set grnworkdir (tackon @default-dest assignname))
(set error true)
(while error
((set grnworkdir
(askdir
(default grnworkdir)
(prompt "Please enter the name of the directory into which the GRn work file should be copied.")
(help @askdir-help)
(newpath)))
(if (not (patmatch "#?:#?" grnworkdir))
(set grnworkdir (expandpath grnworkdir)))
(set error (patmatch "#?[\"*]#?" grnworkdir))
(if error
(message "The selected directory name is not valid. Don't use these characters: \" *."))
(if (not error)
(if (not (exists grnworkdir (noreq)))
((set @error-msg "")
(trap 4 (makedir grnworkdir))
(if (<> @error-msg "")
((if (= level 0)
(user 1))
(message "The selected directory could not be created.")
(set error true))))))))
(user level))
(set grnworkdir (cat assignname ":")))
(complete 25)
(if (or @pretend (>= (getdiskspace grnworkdir) $1e00000))
((working "Copying the GRn work file ...")
(run (cat "copy " (tackon (pathonly @icon) "lib/netnews#?.grnrc ") grnworkdir " quiet buf 512"))
(working)
(complete 50)
(if noassign
((startup @app-name
(command (cat "Assign " assignname ": \"" grnworkdir "\""))
(prompt "The installer will add an assignment to your User-Startup.")
(help "By adding that assignment to your User-Startup, GRn will always be able to find the installed data.\n\n" @startup-help))
(complete 75)
(if (not @pretend)
(makeassign assignname grnworkdir)))))
(abort "You need at least 30 MB of free space on the selected device to install the data."))
(complete 100)
(set @default-dest "")
(exit))
(abort "You need at least Amiga-OS 2.04 to be able to run GRn.\nPlease use your preferred newsreader or upgrade your system software."))